<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/top.jsp" %>
	<div class="search_all">
		<div class="search"><input type="text" id="ebsSearchName" class="input" value="${searchName}"/> <a href="#" onclick="goSearchEbsList();">검색</a></div>
		<c:forEach items="${boardList}" var="boardList">
		<ul>
			<li class="title"><a href="/board/boardView?textID=${boardList.textID}&menuIndex=4" target="_blank" onclick="goView(${boardList.textID})">${boardList.title}</a></li>
			<li class="content">${boardList.contents}</li>
		</ul>		
		</c:forEach>
	</div>
<form style="display:none;" name="frm" id="frm" method="post">
	<input type="text" id="menuIndex" name="menuIndex">
	<input type="text" id="textID" name="textID">
	<input type="text" id="boardIndex">
	<input type="text" id="searchName" name="searchName">
</form>
<script type="text/javascript">
function goSearchEbsList() {
	$("#menuIndex").val(4);
	$("#searchName").val($("#ebsSearchName").val());
	
	var url = "/board/ebsBoardList";	
	
	$("#frm").attr("action", url);
	$("#frm").submit();

}

function goView(textID) {	
	/* $("#boardType").val(-1);
	$("#textID").val(textID);
	$("#frm").attr("action", "/board/boardView");
  	$("#frm").submit(); */
	
  	return false;
}
</script>
<%@ include file="/WEB-INF/views/include/bottom.jsp" %>